







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
will return the reverse opf the 6 items beginning at index 3.
Returns a view onto a sub-range of this list. Items are not copied; the
returned IList<T> is simply a different view onto the same underlying items.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public virtual IList<T> Range( int start, int count ) |
Visual Basic (Declaration) |
---|
Public Overridable Function Range ( _ start As Integer, _ count As Integer _ ) As IList(Of T) |
Visual C++ |
---|
public: virtual IList<T>^ Range ( int start, int count ) |
Parameters
- start
- Int32
The starting index of the view.
- count
- Int32
The number of items in the view.
Return Value
A list that is a view onto the given sub-part of this list.
Remarks
This method can be used to apply an algorithm to a portion of a list. For example:
![]() | |
---|---|
Algorithms.Reverse(deque.Range(3, 6)) |
Exceptions
Exception | Condition |
---|---|
System..::ArgumentOutOfRangeException | start or count is negative. |
System..::ArgumentOutOfRangeException | start + count is greater than the size of the list. |
See Also
Wintellect.PowerCollections Namespace